Function Reference

_NowTime

Returns the current Time in requested format.

#Include <Date.au3>
_NowTime([$sType])

 

Parameters

$sType
    Default: 3 = Display a time using the time format specified in your computer's regional settings.
    4 = Display a time using the 24-hour format (hh:mm).
    5 = Display a time using the 24-hour format (hh:mm:ss).

 

Return Value

Returns the current Time in PC's time format.

 

Remarks

If Time format isn't found in the registry it returns the time in the hh:mm:ss format.

 

Related

_DateTimeFormat, _Now, _NowDate, _NowCalc, _NowCalcDate

 

Example



#include <Date.au3>
MsgBox(0,'',"The time is:" & _NowTime())